<?php
/**
 * Created by PhpStorm.
 * User: white
 * Date: 2020/5/9
 * Time: 11:24
 */

namespace app\common\validate;

use think\Validate;

class Introduces extends Validate
{
    protected $rule = [
        'img|配图' => 'require|image',
        'names|优势名' => 'require',
        'motto|简介' => 'require'
    ];

    //验证场景
    protected $scene = [
        'img' => ['names','motto']
    ];
}